<%@ include file="/common/taglibs.jsp"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>

		<title><fmt:message key="budget.info.edit" />
			<meta name="heading" content="<fmt:message key='budget.info.edit'/>" />
	</head>

	<body>

		<form:form id="EditBudgetInfo" name="EditBudgetInfo" method="post"
			action="updateBudgetInfo.html">
			<input type="hidden" name="id" value="${budgetInfo.id}"/>
			<table>
				<tr>
					<td>
						<fmt:message key="budget.info.id" />
					</td>
					<td>
						<input id="budgetInfo.bcId" name="bcId" value="${budgetInfo.bcId}">
					</td>
				</tr>
				<tr>
					<td>
						<fmt:message key="budget.info.name" />
					</td>
					<td>
						<input id="budgetInfo.bcName" name="bcName"
							value="${budgetInfo.bcName}" />
					</td>
				</tr>
				<tr>
					<td>
						<fmt:message key="budget.info.duty" />
					</td>
					<td>

						<select id="budgetInfo.bcDuty" name="bcDuty">
							<c:forEach items="${users}" var="user">
							<c:if test="${user.bcMgr }">
								<option value="${user.id}"
									<c:if test="${budgetInfo.user.id eq user.id}">selected="selected"</c:if>>
									${user.email}
								</option>
							</c:if>
							</c:forEach>

						</select>

					</td>
				</tr>
				<tr>
					<td>
						<fmt:message key="budget.info.description" />
					</td>
					<td>
						<textarea id="budgetInfo.bcDec" name="bcDec" cols="30" rows="8">${budgetInfo.bcDec}</textarea>
					</td>
				</tr>
				<tr>
					<td>
						<fmt:message key="budget.info.vacation"/>
					</td>
					<td>
						<select id="budgetInfo.vacation" name="vacation">
							<option value="false">
								<fmt:message key="budget.info.vacation.false"></fmt:message>
							</option>
							<option value="true" <c:if test="${budgetInfo.vacation }">selected='selected'</c:if>>
								<fmt:message key="budget.info.vacation.true"></fmt:message>
							</option>
						</select>
					</td>
				</tr>
				<tr>
					<td></td>
					<td>
						<input type="submit" name="modfiy"
							value="<fmt:message key="button.modify"/>" />
						&nbsp;&nbsp;
						<input type="button" name="cancel"
							onclick="location.href='<c:url value='/budget/budlist.html'/>'"
							value="<fmt:message key="button.return"/>" />
					</td>

				</tr>
			</table>
		</form:form>
	</body>
</html>
